﻿using System.ComponentModel.DataAnnotations;

namespace NET8.Domain.Dtos;

/// <summary>
/// 登录信息
/// </summary>
public class LoginDto
{
    /// <summary>
    /// 登录名
    /// </summary>
    [Required(ErrorMessage = "登录名不能为空")]
    public string LoginName { get; set; }

    /// <summary>
    /// 密码
    /// </summary>
    [Required(ErrorMessage = "密码不能为空")]
    public string Password { get; set; }
}